package com.dgut.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("intellectual_property")
@Data
/**
 * 知识产权表
 */
public class IntellectualProperty {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名字
     */
    private String name;

    /**
     * 描述
     */
    private String represent;

    /**
     * 金额
     */
    private Double money;

    /**
     * 图片
     */
    private String picture;

    /**
     * 状态（未上架、已上架）
     */
    private String state;

    public IntellectualProperty(Integer id, String name, String represent, Double money, String picture, String state) {
        this.id = id;
        this.name = name;
        this.represent = represent;
        this.money = money;
        this.picture = picture;
        this.state = state;
    }

    public IntellectualProperty( String name, String represent, Double money, String picture, String state) {
        this.name = name;
        this.represent = represent;
        this.money = money;
        this.picture = picture;
        this.state = state;
    }
    public IntellectualProperty(){

    }
}
